import request from '@/utils/request'

// 查询
export function finAccountCheckList(query) {
  return request({
    url: '/task/finAccountCheck/list',
    method: 'get',
    params: query
  })
}

// 获取新增的对账单
export function getFinAccountCheck(query) {
  return request({
    url: '/task/finAccountCheck/get-new',
    method: 'get',
    params: query
  })
}

 // 新增对账单
export function addFinAccountCheck(data) {
  return request({
    url: '/task/finAccountCheck',
    method: 'post',
    data: data
  })
}


export function finAccountCheckById(id) {
  return request({
    url: `/task/finAccountCheck/${id}`,
    method: 'get',
  })
}


 // 发布对账单
 export function finAccountCheckpublish(data) {
  return request({
    url: '/task/finAccountCheck/publish',
    method: 'post',
    data: data
  })
}


 // 调整对账单
 export function writeOff(data) {
  return request({
    url: '/task/finAccountCheck/adjust',
    method: 'post',
    data: data
  })
}
